package band.wukong.practice.javase.core.io.readerandwriter;

import java.io.StringReader;

/**
 * Desc:
 * Author: sunjs
 * Date: 2009-11-16 16:13:13
 */
public class TestStringReader {
    public static void main(String[] args) throws Exception {
        StringReader reader = new StringReader("道可道，非常道。名可名，非常名。");
        int data;
        while ((data = reader.read()) != -1) {
            System.out.print((char) data + " ");
        }
        reader.close(); //close方法不执行任何操作
    }
}
